package com.york.subject.application.convert;

import com.york.subject.application.dto.SubjectAnswerDTO;
import com.york.subject.application.dto.SubjectInfoDTO;
import com.york.subject.domain.entity.SubjectAnswerBO;
import com.york.subject.domain.entity.SubjectInfoBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 拦截器，实现转换器功能，因为我们需要的是SubjectAnswerBO对象，而该模块使用SubjectAnswerDTO
 */
@Mapper
public interface SubjectAnswerDTOConverter {

    // 返回实现接口的实例
    SubjectAnswerDTOConverter INSTANCE = Mappers.getMapper(SubjectAnswerDTOConverter.class);

    List<SubjectAnswerBO> convertListDTOToBO(List<SubjectAnswerDTO> dtoList);

}
